package com.blockmeta.bbs.overallserviceapplication.popupview;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.blockmeta.bbs.baselibrary.widget.popupview.BaseBottomPopupWindow;
import com.blockmeta.bbs.overallserviceapplication.R;


/**
 * Created by author on 2018/5/25.
 */

public class BBSChoosePopup extends BaseBottomPopupWindow {

    public TextView replyTime;
    public TextView sendTime;
    public TextView commentNum;
    public TextView skinNum;
    public TextView cancle;

    public BBSChoosePopup(Context context) {
        super(context);
    }

    @Override
    public int getResId() {
        return R.layout.popup_bbs_sort;
    }

    @Override
    protected void bindEvent() {
        if (popupView != null) {
            replyTime = (TextView) popupView.findViewById(R.id.bbs_tv1);
            sendTime = (TextView) popupView.findViewById(R.id.bbs_tv2);
            commentNum = (TextView) popupView.findViewById(R.id.bbs_tv3);
            skinNum = (TextView) popupView.findViewById(R.id.bbs_tv4);
            cancle = (TextView) popupView.findViewById(R.id.bbs_cancle);
        }
    }

    @Override
    public View getClickToDismissView() {
        return popupView.findViewById(R.id.click_to_dismiss);
    }

    @Override
    public View initAnimaView() {
        return popupView.findViewById(R.id.popup_anima);
    }
}
